package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 用户签到业务对象 ykj_user_sign
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserSignBo extends BaseEntity {

    /** user_wallet_info */
    @NotNull(
            message = "user_wallet_info不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 谁签到 */
    @NotNull(
            message = "谁签到不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /** 得到金币 */
    @NotNull(
            message = "得到金币不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private BigDecimal goldNum;

    /** 签到日期 */
    @NotNull(
            message = "签到日期不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long signDate;
}
